<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生管理</title>
    <link rel="stylesheet" href="../../CSS/main.css" type="text/css" />
</head>

<body>
<div id="Container">
    <div id="Header">
        <div id="logo" align="center">学生信息管理系统</div>
    </div>
    <div id="Content">
        <div id="Content-Left" style="text-align: center">
            <a href="/admin/teacherManage"><p align="centre">教师管理</p></a>
            <a href="/admin/studentManage"><p align="centre">学生管理</p></a>
            <a href="/quit"><p align="centre">退出</p></a>
        </div>
        <div id="Content-Main" >
            <div style="text-align: center">
                <form action="/admin/studentManage" method="post">
                    <input type="text" name="student_id" placeholder="学号" style="margin-right: 20px">
                    <input type="text" name="student_name" placeholder="学生姓名" style="margin-right: 20px">
                    <input type="submit" value="提交" style="margin-right: 20px">
                    <a href="/admin/studentAdd?value=0">添加学生信息</a>
                </form>

            </div>
            <table border="1">
                <tr class="student">
                    <th>学号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>院系</th>
                    <th>专业</th>
                    <th>班级</th>
                    <th>身份证</th>
                    <th>联系方式</th>
                    <th>家庭地址</th>
                    <th>操作</th>
                </tr>
                #for(student : student_page.list)
                <tr class="student">
                    <td>#(student.studentId)</td>
                    <td>#(student.studentName)</td>
                    <td>#(student.studentSex)</td>
                    <td>#(student.departmentName)</td>
                    <td>#(student.majorName)</td>
                    <td>#(student.clazzId)</td>
                    <td>#(student.studentIdCard)</td>
                    <td>#(student.studentPhone)</td>
                    <td>#(student.studentAddress)</td>
                    <td><a href="/admin/studentUpdate?student_id=#(student.studentId)&value=0">修改</a>&nbsp;&nbsp;&nbsp;<a href="/admin/studentDelete?student_id=#(student.studentId)">删除</a></td>
                </tr>
                #end
            </table>
            <div style="text-align: center">
                #if(student_page.pageNumber > 1) <a href="/admin/studentManage?page=#(student_page.pageNumber - 1)">上一页</a>
                #else if(student_page.pageNumber < student_page.totalPage) <a href="/admin/studentManage?page=#(student_page.pageNumber + 1)">下一页</a>
                #end
            </div>
        </div>
    </div>
    <div class="Clear"><!--如何你上面用到float,下面布局开始前最好清除一下。--></div>
    <div id="Footer">版权归MyTeam小组所有</div>
</div>


</body>
</html>
